package cn.edu.demo.pojo.result;

import cn.edu.demo.pojo.Car;
import cn.edu.demo.pojo.Driver;
import cn.edu.demo.pojo.Orders;
import cn.edu.demo.pojo.OrdersWithBLOBs;

import java.util.Date;
import java.util.List;

public class OrderlistResult {
    private Integer o_money ;
    private String o_state;
    private String d_name;
    private String carnum;
    private Date s_time;
    private Date e_time;
    private String s_point;
    private byte[] s_position;
    private String e_point;
    private byte[] e_position;
//    private Driver driver;
//    private Car car;
//    private OrdersWithBLOBs ordersWithBLOBs;


    public OrderlistResult() {}

    public OrderlistResult(Driver driver, Car car,OrdersWithBLOBs orderlist) {
            this.o_money = orderlist.getPrice();
            this.o_state = orderlist.getStatusOrder();
            this.d_name = driver.getFullnameD();
            this.carnum = car.getCarNumber();
            this.s_time = orderlist.getStartTime();
            this.e_time = orderlist.getEndTime();
            this.s_point = orderlist.getStartPoint();
            this.s_position = orderlist.getCoordinateStart();
            this.e_point = orderlist.getDestination();
            this.e_position = orderlist.getCoordinateEnd();
        }


    public Integer getO_money() {
        return o_money;
    }

    public void setO_money(Integer o_money) {
        this.o_money = o_money;
    }

    public String getO_state() {
        return o_state;
    }

    public void setO_state(String o_state) {
        this.o_state = o_state;
    }

    public String getD_name() {
        return d_name;
    }

    public void setD_name(String d_name) {
        this.d_name = d_name;
    }

    public String getCarnum() {
        return carnum;
    }

    public void setCarnum(String carnum) {
        this.carnum = carnum;
    }

    public Date getS_time() {
        return s_time;
    }

    public void setS_time(Date s_time) {
        this.s_time = s_time;
    }

    public Date getE_time() {
        return e_time;
    }

    public void setE_time(Date e_time) {
        this.e_time = e_time;
    }

    public String getS_point() {
        return s_point;
    }

    public void setS_point(String s_point) {
        this.s_point = s_point;
    }

    public byte[] getS_position() {
        return s_position;
    }

    public void setS_position(byte[] s_position) {
        this.s_position = s_position;
    }

    public String getE_point() {
        return e_point;
    }

    public void setE_point(String e_point) {
        this.e_point = e_point;
    }

    public byte[] getE_position() {
        return e_position;
    }

    public void setE_position(byte[] e_position) {
        this.e_position = e_position;
    }
}
